<!DOCTYPE html>
<html>
    <head>
        <title> 配网调试助手 </title>
        <meta http-equiv='content-type' content='text/html; charset=UTF-8'/>
        <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
        <script type="text/javascript" src="js/head.js"></script>
        <script type="text/javascript">
            $(document).on("pageinit", function() {
                // 调用初始化数据库，初始化定值参数
                try {
                    window.paramsjsi.initData();
                } catch(e) {
                }

                // 参数管理
                $("#parambtn").on("tap", function() {
                    changePage("html/param/index.html");
                });
                
                // 工程调试
                $("#debugbtn").on("tap", function() {
                    changePage("html/debug/index.html");
                });

                // 就地升级
                $("#upgradebtn").on("tap", function() {
                    changePage("html/building.html");
                });

                // 其他维护
                $("#othersbtn").on("tap", function() {
                    changePage("html/building2.html");
                });
            });

            /**
             * 页面跳转
             */
            var changePage = function(url) {
                window.location.href = url;
            };
        </script>
    </head>
    <body>
        <div data-role="page" id="homepage" data-dom-cache="true" style="background: #ffffff;" data-theme="f">
            <div data-role="header" id="homeheader" data-theme="f">
                <h1></h1>
                <a href="#" id="sysconfigbtn" class="ui-btn-right" data-role="button" data-icon="bars" data-iconpos="notext">系统设置</a>
            </div>

            <div data-role="content" id="homecontent">
                <div style="padding-top: 60px; padding-bottom: 20px; margin-bottom: 20px;" class="content-center"><img src="image/logo.png" width="300"/><!-- LOGO -->
                </div>
            </div>

            <div data-role="footer" id="homefoot" data-position="fixed" data-theme="f" style="z-index: 50">
                <div data-role="navbar" data-grid="a">
                    <ul>
                        <li>
                            <a href="#" data-role="button" id="debugbtn" data-icon="grid">工程调试</a>
                        </li>
                        <li>
                            <a href="#" data-role="button" id="parambtn" data-icon="grid">参数管理</a>
                        </li>
                        <li>
                            <a href="#" data-role="button" id="upgradebtn" data-icon="grid">就地升级</a>
                        </li>
                        <li>
                            <a href="#" data-role="button" id="othersbtn" data-icon="grid">其他维护</a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
</html>
